#!/bin/bash
[[ "${DEBUG}" == "true" ]] && set -x
green="\e[32m"
litred="\e[31;1m"
nocolor="\e[0m"
clear
echo -ne "${litred}脚本运行模式-Select Script Run Mode${nocolor}
${green}1.${nocolor}Shell Consoloe -- 传统shell控制台模式
${green}2.${nocolor}Whiptail Tools -- 基于whiptail的交互模式
"
while [[ $runMode != [12] ]]
do
   echo -ne "请选择[1]: "
   read runMode
   runMode=${runMode:-1}
done

if [ "$runMode" = "1" ];then
   sh ./envc.sh
else
   sh ./env.sh
fi
